//保存所有的请求路径

const Api = {
    common: {
        login:"/common/login",  //登入
        ping: "/common/ping",
        register:"/common/register",
        sendCode:"/common/sendCode",
        modifyPassword:"/common/modifyPassword",
        getUserAccount:"/common/getUser",
        setAvatar:"/common/setAvatar",
        setName:'/common/setName',
        getOnLinePerPon:'/common/getOnLinePerPon',
        websocketPath: "/common/websocket/",//webSocket登入
        setPromise:'/common/setPromise',
        getPromise:'/common/getPromise',
        file: {
            upload:"/common/file/upload", //上传文件
            getTokenLoad:'/common/file/getTokenLoad',  //通过文件id获取token
            delete: '/common/file/delete/',
        },
        chat:{
            getSessionVo:"/common/chat/getSessionVo",
            getChatList:"/common/chat/getChatList",
            setRead:"/common/chat/setRead",
            createSession: '/common/chat/createSession',
            deleteSession: '/common/chat/deleteSession'
        },
        tie:{
            getFriendShowVo:"/common/tie/getFriendShowVo",
            createFriendGroup: '/common/tie/createFriendGroup',
            updateFriendGroup: '/common/tie/updateFriendGroup',
            getFriendGroup:'/common/tie/getFriendGroup',
            addFriend:'/common/tie/addFriend',
            addFriendId:'/common/tie/addFriendId',
            getFriendAddMessage:'/common/tie/getFriendAddMessage',
            agree:'/common/tie/agree',
            removeFriend:'/common/tie/removeFriend',
            removeFriendGroup:'/common/tie/removeFriendGroup',
            moveFriendGroup:'/common/tie/moveFriendGroup',
            refusal:'/common/tie/refusal'
        },
        group:{
            getGroup:'/common/group/getGroup',
            intoGroup:"/common/group/intoGroup",
            addGroupUser:'/common/group/addGroupUser',
            getGroupAddMessage:'/common/group/getGroupAddMessage',
            createGroup:'/common/group/createGroup',
            refusal:'/common/group/refusal',
            agree:'/common/group/agree',
            exitGroup:'/common/group/exitGroup',
            getGroupMember:'/common/group/getGroupMember',
            getGroupInfo:'/common/group/getGroupInfo',
            updateGroup:'/common/group/updateGroup',
            kickOut:'/common/group/kickOut'
        },
        show:{
            release:'/common/show/release',
            getAllShow:'/common/show/getAllShow',
            getUserShow:'/common/show/getUserShow',
            praise:'/common/show/praise',
            comment:'/common/show/comment',
            deleteShow: '/common/show/deleteShow'
        },
        end:{
            delete:'/common/end/delete',
            forcedExit:'/common/end/forcedExit',
            getAll:'/common/end/getAll',
            getAllRole:'/common/end/getAllRole'
        }
    },
}



export default Api